import React from 'react';
import NavBar from '../Common/NavBar';

class Mine extends React.Component {
  constructor(props) {
    super(props);
    this.state = { name: "陈森" };
  }
  handleClick = () => {
    console.log(this.state.name)
  }
  render() {
    var text = this.state.name;
    return (
      <div>
        <NavBar title="我的" />
        <h1 className="content" onClick={this.handleClick}>{text}</h1>
      </div>
    );
  }
}
export default Mine;
